package com.zt.yzmlogin.mapper;

import com.zt.yzmlogin.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    /**
     * 根据手机号查找用户
     */
    User findByPhone(@Param("phone") String phone);

    /**
     * 插入新用户
     */
    void insert(User user);
} 